<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>

</head>

<body>
	<h1>这是NODEJS服务器返回的文件</h1>
	<button onclick="login()">登录</button>
	<script src="https://unpkg.com/axios/dist/axios.min.js"></script>

	<script>
		function login(params) {
			axios.post('/login').then(res => {
				console.log(res);
			})
		}
	</script>
</body>

</html>